namespace TSL.BLL
{
    using System;
    using System.Collections.Generic;
    using System.Data;
    using TSL.DAL;
    using TSL.Model;

    public class Buy_SSC
    {
        private readonly TSL.DAL.Buy_SSC dal = new TSL.DAL.Buy_SSC();

        public void AddBuy_SSC(TSL.Model.Buy_SSC model)
        {
            this.dal.AddBuy_SSC(model);
        }

        public void Delete(string ID)
        {
            this.dal.Delete(ID);
        }

        public void DeleteAllDetail(int days)
        {
            this.dal.DeleteAllDetail(days);
        }

        public void DeleteBuy_SSC(string ID)
        {
            this.dal.DeleteBuy_SSC(ID);
        }

        public bool Exists(string name)
        {
            return this.dal.Exists(name);
        }

        public bool Exists(string ssc_id, string lottery_num)
        {
            return this.dal.Exists(ssc_id, lottery_num);
        }

        public DataSet GetBuyHis(string strWhere)
        {
            return this.dal.GetBuyHis(strWhere);
        }

        public DataSet GetBuyHisAll(string strWhere)
        {
            return this.dal.GetBuyHisAll(strWhere);
        }

        public List<TSL.Model.Buy_SSC> GetListArray()
        {
            return this.dal.GetListArray("");
        }

        public List<TSL.Model.Buy_SSC> GetListArray(string strWhere, string qihao, string stratetime, string endtime)
        {
            return this.dal.GetListArray(strWhere, qihao, stratetime, endtime);
        }

        public List<TSL.Model.Buy_SSC> GetListArray(string strWhere, string username, string regfrom, string stratetime, string endtime)
        {
            return this.dal.GetListArray(strWhere, username, regfrom, stratetime, endtime);
        }

        public List<TSL.Model.Buy_SSC> GetListArray(string strWhere)
        {
            return this.dal.GetListArray(strWhere);
        }

        public List<TSL.Model.Buy_SSC> GetListArrayBySupID(string supID)
        {
            string strWhere = " ID=" + supID;
            return this.dal.GetListArray(strWhere);
        }

        public DataSet GetListFromView(string strWhere)
        {
            return this.dal.GetListFromView(strWhere);
        }

        public TSL.Model.Buy_SSC GetModel(string name, int id)
        {
            return this.dal.GetModel(name, id);
        }

        public Buy_SSC_Info GetModel_Buy_SSC(string lotteryid)
        {
            return this.dal.GetModelBy_Buy_SSC(lotteryid);
        }

        public TSL.Model.Buy_SSC GetModelByID(string lotteryid)
        {
            return this.dal.GetModelByID(lotteryid);
        }

        public TSL.Model.Buy_SSC GetModels(int id)
        {
            return this.dal.GetModels(id);
        }

        public List<Buy_SSC_Info> GetOpenSSC(string strWhere)
        {
            return this.dal.GetOpenSSC(strWhere);
        }

        public void Update(TSL.Model.Buy_SSC model)
        {
            this.dal.Update(model);
        }

        public void Update_Buy_SSC(Buy_SSC_Info model)
        {
            this.dal.Update_Buy_SSC(model);
        }
    }
}

